using System;
using System.Collections.Generic;
using Cosmos.Hardware;

namespace SharkOS.Core.Graphiques
{
   class curseur
   {
       Souris.Souris souris = new Souris.Souris();
       Ecran.GestionEcran screen = new Ecran.GestionEcran();
       public void DessineCurseur()
       {

           uint mx = (uint)souris.getX();
           uint my = (uint)souris.getY();
 
           if (mx != souris.x || my != souris.y)
           {
               screen.SetPixel320x200x8(souris.x, souris.y, souris.oc);
               screen.SetPixel320x200x8(souris.x +1, souris.y-1, souris.oc);
               screen.SetPixel320x200x8(souris.x, souris.y-1, souris.oc);
               souris.x = mx;
               souris.y = my;
               souris.oc = screen.GetPixel320x200x8(souris.x, souris.y);
           }
           screen.SetPixel320x200x8(mx, my, 0x01);
           screen.SetPixel320x200x8(mx + 1, my - 1, 0x01);
           screen.SetPixel320x200x8(mx, my - 1, 0x01);
       }
    }
}